const express = require('express');

const router = express.Router();
const userController = require('../controllers/userContorller');
const exprseeJoi = require ('@escook/express-joi');
const {userCheck} = require('../utils/check');
/**
 * 用户注册接口
 */

router.post('/register',
    exprseeJoi(userCheck),
    userController.registerController);

/**
 * 用户登录接口
 */

router.post('/login',
    exprseeJoi(userCheck),
    userController.loginController
);


/**
 * 用户信息查询接口
 */

router.get('/userInfo',userController.userInfoController);







module.exports = router;